package com.ruoyi.myweb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 res_cart
 * 
 * @author ruoyi
 * @date 2023-12-16
 */
public class ResCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车编号 */
    private Long id;

    /** 用户编号 */
    private Long userId;

    /** 店铺编号 */
    @Excel(name = "店铺编号")
    private Long shopId;

    /** 菜品编号 */
    @Excel(name = "菜品编号")
    private Long foodId;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long quantity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setFoodId(Long foodId) 
    {
        this.foodId = foodId;
    }

    public Long getFoodId() 
    {
        return foodId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("shopId", getShopId())
            .append("foodId", getFoodId())
            .append("quantity", getQuantity())
            .append("createTime", getCreateTime())
            .toString();
    }
}
